package grafikon;

import java.util.Comparator;

/**
 *
 * @author Csüti
 */
public class CoordComparator implements Comparator<Coords> {

    @Override
    public int compare(Coords o1, Coords o2) {
        return (o1.y > o2.y) ? 1 : -1;              //Sorts the selected lists by the y coordinates
    }
}
